
import java.awt.*;
import java.awt.geom.*;


/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * NewJFrame.java
 *
 * Created on 27.Eki.2011, 15:42:50
 */
/**
 *
 * @author Özgün Yılmaz
 */
public class NewJFrame extends javax.swing.JFrame {

    /** Creates new form NewJFrame */
    public NewJFrame() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        drawButton1 = new DrawButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setBounds(new java.awt.Rectangle(10, 10, 500, 500));
        setMinimumSize(new java.awt.Dimension(400, 400));
        getContentPane().setLayout(null);

        drawButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                drawButton1ActionPerformed(evt);
            }
        });
        getContentPane().add(drawButton1);
        drawButton1.setBounds(80, 60, 220, 130);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void drawButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_drawButton1ActionPerformed
        // TODO add your handling code here:
        System.out.println("deneme");
    }//GEN-LAST:event_drawButton1ActionPerformed

    
   
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new NewJFrame().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private DrawButton drawButton1;
    // End of variables declaration//GEN-END:variables
}
